<?php
namespace Home\Controller;
use Think\Controller;
class Index2Controller extends Controller {
    public function freeOrderUpdate(){//免费订单更新
        $orderid=$_REQUEST['orderid'];
        $selectArr=S('sm_h5test|'.$orderid);
        $selectArr['status']=2;
        $selectArr['price']=0.01;
        S('sm_h5test|'.$orderid,$selectArr,31536000);
        M()->query("update sm_h5test set status=2,price='0.01' where ordernum='{$orderid}'");
        echo 1;
    }
}